<?php
namespace app\model\mysql;

use think\Model;

class OrderProduct extends Model {

    protected $name = "order_product";

    protected $autoWriteTimestamp = true;

    protected $createTime = "created_time";

    protected $updateTime = "updated_time";

    public function saveAllData($data = []) : bool {
        $result = $this->saveAll($data);
        $result = array_filter($result->toArray());

        return empty($result) ? false : true;
    }
}